<div class="list_main_country">
	<div class="list_main_country_title">
		目的地:
		<ul id="list_main_country">
			<?php
			require_once 'function.php';
			
			$res = getAllContient ();
			$index = 1;
			foreach ( $res as $row ) {
				if ($index == 1) {
					echo '<li class="list_main_country_mouse_hover" onclick="fun(' . $row [id] . ')">' . $row [name] . '</li>';
				} else {
					echo '<li class="list_main_country_mouse" onclick="fun(' . $row [id] . ')">' . $row [name] . '</li>';
				}
				$index = 0;
			}
			?>
		</ul>
	</div>
	<div class="list_main_country_content">
		<?php
		foreach ( $res as $row ) {
			$contientId = $row [id];
			echo '<div class="list_main_conntry_more" id="list_main_conntry_' . $contientId . '">';
			$countryRes = getCountryByContient ( $contientId );
			foreach ( $countryRes as $country ) {
				echo '<a href="country.php?countryId=' . $country [id] . '">' . $country [name] . '</a>';
			}
			echo '</div>';
		}
		?>
	</div>
</div>